package action.chain;

import action.chain.vo.HolidayRequest;

public class Client {
    public static void main(String[] args) {
        HolidayRequest request = new HolidayRequest(1, "10200571", 29);
        Chief chief = new Chief("沈");
        Minister minister = new Minister("韦");
        Manager manager = new Manager("隋");
        chief.setNext(minister).setNext(manager);
        chief.handleHoliday(request);
    }
}
